package com.wangjiang.mario.admin.system.domain.service;

import com.wangjiang.mario.admin.system.domain.entity.UserEntity;
import com.wangjiang.mario.admin.system.object.token.TokenResult;

public interface JwtService {
    /**
     * 根据用户实体生成token
     *
     * @param user
     * @return
     */
    TokenResult generateTokenByUserEntity(UserEntity user);

    String getUUid();

    String getUUid(String token);

    Boolean removeCurrentToken();

    Boolean existsTokenInCache(String uuid, String jwtString);

    UserEntity getUser();
}
